using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Yozeev.SystemConfig.BasicConfig
{
    /// <summary>
    /// 数据字典
    /// </summary>
    public class DateDictionary : ByUserEntity<Guid>
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Required]
        [StringLength(128)]
        public string DictionaryName { get; set; }
        /// <summary>
        /// 代码
        /// </summary>
        [Required]
        [StringLength(128)]
        public string DictionaryCode { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [Required]
        public long? Sort { get; set; }
        /// <summary>
        /// 上级代码标识
        /// </summary>
        public Guid? ParentId { get; set; }
        [ForeignKey("ParentId")]
        public virtual DateDictionary Parent { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        [Required]
        [StringLength(500)]
        public string Explain { get; set; }
    }
}
